package cn.yunhe.service.impl;

import cn.yunhe.dao.IUserMapper;
import cn.yunhe.model.User;
import cn.yunhe.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @描述
 * @参数 $params$
 * @返回值 $return$
 * @创建人 lihui
 * @创建时间 $date$
 * @修改人和其它信息
 */
@Service("userService")
public class UserServiceImpl implements IUserService {
    @Resource
    private IUserMapper userMapper;


    @Override
    public List<User> findalluser() {
        List<User> list = userMapper.findallUser();
        return list;
    }

    @Override
    public List<User> getLikeUsers(Map<String, Object> user) {
        List<User> list = userMapper.getLikeUsers(user);
        return list;
    }

    @Override
    public int getLikeUsersCount(Map<String, Object> user) {
        int count = userMapper.getLikeUsersCount(user);
        return count;
    }

    public IUserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(IUserMapper userMapper) {
        this.userMapper = userMapper;
    }
}
